package com.qf.md.item.controller;

import com.qf.common.PageParam;
import com.qf.common.PageVO;
import com.qf.common.R;
import com.qf.md.item.param.ItemSearchParam;
import com.qf.md.item.service.MdItemService;
import com.qf.md.item.vo.MdItemVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zdl
 * @date 2025/3/3
 */
@RestController
@RequestMapping("/md/item")
public class MdItemController {
    @Resource
    private MdItemService mdItemService;
    @GetMapping("/list")
    public R<PageVO<MdItemVO>> queryMdItemVo(ItemSearchParam itemSearchParam){
        PageVO<MdItemVO> mdItemVOPageVO = mdItemService.queryMdItemVo(itemSearchParam);
        return R.ok(mdItemVOPageVO);
    }
}
